#include <stdio.h>
#include <stdlib.h>
struct student
{
    int a;
    char b[30];
    double c;
};
int main()
{
    int n;
    scanf("%d",&n);
    while(n--)
    {
        struct student s;
        scanf("%d %s %lf",&s.a,s.b,&s.c);
        printf("%d\n %s\n %.2lf\n",s.a,s.b,s.c);
    }
    return 0;
}
